refactor: extract database singleton to AttributeStore, add name field to Graph#377
refactor: extract database singleton to AttributeStore, add name field to Graph#377
Conversation
…d to Graph - Move fjall DATABASE static from Graph to AttributeStore as get_database() - Remove database parameter from AttributeStore::new() - Add name: String field to Graph struct for persistence/identification - Add Graph::name() accessor Split from #359.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 53 minutes and 34 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #377 +/- ##
==========================================
- Coverage 84.15% 84.15% -0.01%
==========================================
Files 110 110
Lines 28963 28964 +1
==========================================
Hits 24375 24375
- Misses 4588 4589 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Split from #359.
DATABASEstatic fromgraph.rstoattribute_store.rsasget_database()functiondatabaseparameter fromAttributeStore::new()— stores create/access the shared database internallyname: Stringfield toGraphstruct (needed for RDB persistence and virtual key naming)Graph::name()accessorTest plan
cargo checkpassescargo test -p graphpasses